<html>
  <body>
    <form id="hahah">
      <input name="name"  type="text"/>
      <input name="phone"  type="text"/>

    
    </form>

    <button id="submit">dddd</button>

  </body>

  <script>

    var  button = document.getElementById('submit')

    button.onclick = function(){

      console.log(3333)

      // var  form = document.getElementById('hahah')

      // form.reset()

    }

    button.dispatchEvent(new Event("click"))

  </script>

</html>
